<?php
    echo $this->Form->create('ExpenseGroup');
    if(!empty($this->Form->value('ExpenseGroup.id'))){
        echo  $this->Form->input('id');
    }
?>
<div class="panel-body">
    <div class="row mb20">
        <div class="col-sm-3">
            <div class="form-group">
                <label class="control-label">Tipo Grupo:</label>
                <div class="control-group">
                    <?php
                        echo $this->Form->input('tipo_expense', array(
                            'before' => '<div class="rdio rdio-danger col-sm-6">',
                            'after' => '</div>',
                            'between' => '--between---',
                            'separator' => '</div><div class="rdio rdio-success col-sm-6">',
                            'options' => array('D'=>'Despesa','R'=>'Receita'),
                            'type'=>'radio',
                            'div'=>false,
                            'legend'=>false
                        ));
                    ?>
                </div>
            </div>
        </div>
        <div class="col-sm-9">
            <div class="form-group">
                <label class="control-label text-muted">Descrição:</label>
                <?php echo $this->Form->input('name',array('div'=>false,'label'=>false,'class'=>'form-control')) ?>
            </div>
        </div>
    </div>
</div>
<div class="panel-footer">
    <?php echo $this->Form->button('Confirmar',array("class"=>"btn btn-primary")) ?>
    <?php echo $this->Html->link('Cancelar',array('controller'=>$this->params['controller'],'action'=>'/'),array("class"=>"btn btn-default")) ?>
</div>